import './index.scss';
export const highlighting = {
  update(el, binding) {
    console.log(binding)
    const index = binding.value
    const oldValue = binding.oldValue
    if(typeof index == 'number'){
      const element = el.children[index]
      element.classList.add('highlighting')
    }
    if(oldValue !== null){
      const element = el.children[oldValue]
      element.classList.remove('highlighting')
    }
  },
}